

<title>注册</title>

<div class="container signInNow regWrap">

    <div class="tabview">
        <ul id="ajaxSignIn" class="tab">
            <li class="on"><a href="#ajaxlogin">登 录</a></li>
            <li><a href="#ajaxlostPassword">忘记密码</a></li>
        </ul>
    </div>

    <div id="tips"></div>

    <div id="ajaxlogin" class="content" style="display:block;">
     
        <!-- #引用公用的用户登陆 -->
        <script type="text/javascript"> 
		$(document).ready(function(){
		    var mb_name=getCookie('mb_name');//保留的cookie值,退出时不清空
		    $.formValidator.initConfig({
		        validatorgroup:"loginform",
		        formid:"loginform",
		        autotip:true
		    });
    
		/*
		    $("#userPW").formValidator({
		        validatorgroup:"loginform",
		        onshow:"...",
		        onfocus:"密码不能为空",
		        oncorrect:"正确"
		    }).inputValidator({
		        min:1,
		        empty:{leftempty:false,rightempty:false,emptyerror:"密码两边不能有空符号"},
		        onerror:"密码不能为空,请确认"
		    });
		*/
    
	    $("#userID").formValidator({
	        validatorgroup:"loginform",
	        onshow:"...",
	        onfocus:"继续...",
	        oncorrect:"正确",
	        defaultvalue:mb_name
	    }).inputValidator({
	        min:6,
	        max:100,
	        onerror:"邮箱的长度不对"
	    }).regexValidator({
	        regexp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",
	        onerror:"请输入正确的邮箱"
	    });

	});
		
		
</script>





<form id="loginform" autocomplete="off">
	<p class="inputWrap">
	    <label for="userID">邮箱:</label>
	    <input id="userID" name="username" type="text" class="input" style="width:220px;" />
	    <span id="userIDTip"></span>
	</p>
	
	<p class="inputWrap">
	    <label for="userPW">密码:</label>
	    <input id="userPW" name="password" type="password" class="input" style="width:220px;" />
	    <span id="userPWTip"></span>
	</p>
	
	<p class="inputWrap clearfix displayNone" id="verifycodeInput"></p>
	<input type="hidden" name='loginmark' id='loginmark' value='L'>
	<p class="inputWrap">
	    <span class="button button-hilite">
	        <span class="first-child">
	            <button type="button" class="f14 strong" onclick="return ajaxlogin();">登 录</button>
	        </span>
	    </span>
	</p>
	
	<p>{$Think.config.sysconfig.webname}用户服务协议：<a href="{:U('/Article/index/id/4')}" title="使用条款">《使用条款》</a></p>   <!-- 连接文章管理 -->
	<p>切勿使用第三方软件自动登录{$Think.config.sysconfig.webname}。</p>
</form>






<p id="regMsg"></p>

        <!-- #引用公用的用户登陆 end -->
    </div>

    <div id="ajaxlostPassword" class="content">
        <!-- #引用公用的找回密码 -->
        <script type="text/javascript">
			$(document).ready(function(){
	
			    $.formValidator.initConfig({
			        formid:"getpwdform",
			        validatorgroup:"getpwdform",
			        autotip:true
			    });
			
			    $("#mailbox").formValidator({
			        validatorgroup:"getpwdform",
			        onshow:"...",
			        onfocus:"...",
			        oncorrect:" "
			    }).inputValidator({
			        min:6,
			        max:100,
			        onerror:"邮箱的长度不对"
			    }).regexValidator({
			        regexp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",
			        onerror:"请输入正确的邮箱"
			    });
			
			    $("#userverifycode").formValidator({
			        validatorgroup:"getpwdform",
			        onshow:"...",
			        onfocus:"请输入验证码",
			        oncorrect:" "
			    }).inputValidator({
			        min:4,
			        max:4,
			        onerror:"验证码格式不对"
			    });
			    
			    $("#getpwdform").keydown(function(event){
			        if(event.keyCode == 13)
			        {
			            ajaxgetpwd();
			        }
			    });
	
		});
	</script>


			
	<form id='getpwdform' autocomplete="off">
	    <div class="inputWrap">
	        <label>邮箱:</label>
	        <input type="text" id="mailbox" name="mailbox" class="input" style="width:220px;" onFocus="fleshVerify('verifyImg_forget');" />
	        <span id='mailboxTip'></span>
	    </div>
	    <div class="inputWrap clearfix" id="verifycodeInput">
	        <label for="userverifycode">验证码:</label>
	        <input type="text" class="input fl space" name="forgetcode"  id="userverifycode" style="width:60px;"/>
	        <span class="fl space"><img id="verifyImg_forget" src="__APP__/User/verify/" onClick="fleshVerify('verifyImg_forget')" title="点击刷新验证码" /></span>
	        <span id="userverifycodeTip"></span>
	    </div>
	
	    <div class="inputWrap">
	        <span class="button button-hilite">
	            <span class="first-child">
	                <button type="button" onclick="return ajaxgetpwd()"><strong>发 送</strong></button>
	            </span>
	        </span>
	    </div>
	    <p class="notice">系统将自动发送一封重置邮件到您邮箱，请注意查收，逾期失效。</p>
	    <p class="notice">建议设置高强度的密码串，注意妥善保管。</p>
	
	</form>
			
        <!-- #引用公用的找回密码 end -->
    </div>
    
</div>